Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement model_bool hook for controlling model truthiness #113

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

lu-pl
Copy link
Contributor

@lu-pl lu-pl commented Oct 24, 2024

Closes #110, closes #112.

@lu-pl lu-pl marked this pull request as draft October 24, 2024 14:36
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch from 01ea313 to f99052e Compare October 28, 2024 13:58
@kevinstadler kevinstadler marked this pull request as ready for review October 30, 2024 12:58
@kevinstadler kevinstadler marked this pull request as draft October 30, 2024 12:59
@b1rger b1rger self-requested a review November 4, 2024 08:22
@b1rger b1rger marked this pull request as ready for review November 4, 2024 08:22
@b1rger b1rger marked this pull request as draft November 4, 2024 08:22
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch from f99052e to b9329c9 Compare November 6, 2024 11:52
@lu-pl lu-pl marked this pull request as ready for review November 6, 2024 12:34
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch 5 times, most recently from 1c6fc01 to 41291be Compare November 15, 2024 12:01
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch from 41291be to 20f6c2c Compare November 16, 2024 10:24
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch from 20f6c2c to be69e8e Compare November 19, 2024 19:13
Model truthiness is an important metric for the rdfproxy grouping mechanism.
Currently, a model is considered truthy if at least one of its fields is truthy.

This is a sane default, yet certain frontend demands require different model truth conditions.

The feature introduces a model_bool option in the model_config
that allows client code to specify conditions/predicates for determining model truthiness.

Closes #110, closes #112.
@lu-pl lu-pl force-pushed the lupl/model-bool-feature branch from be69e8e to ddcb490 Compare November 20, 2024 13:59
@lu-pl lu-pl requested a review from b1rger November 20, 2024 14:47
@lu-pl lu-pl merged commit 942ae06 into main Nov 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants